<%@ taglib prefix="s" uri="/struts-tags" %>

<div id="questionAndAnswerDisplayDiv">
	<div id="questionDiv">
		<s:property value="#session.examObject.currentQuestion.questionText"/>			
	</div><br>
	<div id="answerDiv">
		<s:if test="%{#session.examObject.currentQuestion.questionType == '0'}">
			<s:if test="%{#session.examObject.currentQuestion.isAnswered == false}">
				<s:iterator value="#session.examObject.currentAnswers">
				    <s:radio cssClass="radio" theme="simple" name="yourAnswer" list="#{answerId:answerText}"/>
				</s:iterator>
			</s:if>
			<s:else>
				<s:iterator value="#session.examObject.currentAnswers">
				    <s:if test="%{isAnswerSelectedByUser == true}">
					<s:radio cssClass="radio" theme="simple" name="yourAnswer" value="answerId" list="#{answerId:answerText}"/>	</br>			    
				    </s:if>
				    <s:else>
				    	<s:radio cssClass="radio" theme="simple" name="yourAnswer" list="#{answerId:answerText}"/></br>
				    </s:else>
				</s:iterator>			
			</s:else>
		</s:if>
		<s:else>CheckBox manipulation here......</s:else>
	</div>	
</div>

